﻿//////////////////////////////////////////////////////////////////////////////////////////////////////
//Name: Bartosz
//FullName: Adamczewski
//Project: InternalClasses.Demo
//Component:
//StartDate: 2009-11-23 22:29:11
//EndDate: 2009-11-23 22:29:11
//Description: The implementation of Demo Project.
//Rights: Copyright (c) Bartosz Adamczewski
//////////////////////////////////////////////////////////////////////////////////////////////////////

#region imports.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using DemoProject.CustomActions;
using InternalClasses.Context.Actions;

#endregion 

namespace DemoProject
{
    public class Test : ITest
    {
        [ConsoleWriteAction("Console Action OK")]
        [ConsoleWriteAction("OK!! TestSum")]
        public int TestSum(int a, int b)
        {
            return a + b;
        }

        [ConsoleWriteAction("OK!! StringBuild")]
        public StringBuilder StringBuild()
        {
            return new StringBuilder();
        }

        [ConsoleWriteAction("OK!! DoSomething")]
        [IsNotNullAction(false,true)]
        public void DoSomething(int p1, StringBuilder p2)
        {
        }

        [CreateClassAction()]
        public ITest CreateTest(ITest test)
        {
            test.Id = -1;
            return test;
        }

        public int Id { get; set; }
        public string Text { get; set; }
    }
}
